import fetch from 'utils/fetch';

export function supportedLogin() {
  const requestParams = {
    account: 'zhangsan',
    password: '1$ZXLzxl217519',
    isRemenberMe: true
  }
  return fetch({
    url: '/ipr-service-sys/api/sso/login',
    data: JSON.stringify(requestParams),
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    }
  });
}

export function supportedSelectListByPage() {
  const requestParams = {
    roleName: 'roleName1',
    account: 'account',
    currPage: 1,
    pageSize: 5
  }
  return fetch({
    url: '/ipr-service-sys/api/sysRole/selectListByPage',
    data: JSON.stringify(requestParams),
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    }
  });
}